package com.jiashihui.schema_lgorithm.schema.iterator;

/**
 * @author jiashihui
 * @describe: 集合接口
 * @date 2019/03/15
 */
public interface Collection {

    /**
     * 获取迭代器
     *
     * @author jiashihui
     */
    Iterator iterator();

    /**
     * 获取集合元素
     *
     * @author jiashihui
     */
    Object get(int index);

    /**
     * 获取集合大小
     *
     * @author jiashihui
     */
    int size();

}
